<?php

/**
 * 媒资
 */
Route::get('entity/asset/video/vassetis', ['as'=> 'entity.asset.video.vassetis.index', 'uses' => 'Entity\Asset\Video\VassetiController@index']);
Route::post('entity/asset/video/vassetis', ['as'=> 'entity.asset.video.vassetis.store', 'uses' => 'Entity\Asset\Video\VassetiController@store']);
Route::get('entity/asset/video/vassetis/create', ['as'=> 'entity.asset.video.vassetis.create', 'uses' => 'Entity\Asset\Video\VassetiController@create']);
Route::put('entity/asset/video/vassetis/{vassetis}', ['as'=> 'entity.asset.video.vassetis.update', 'uses' => 'Entity\Asset\Video\VassetiController@update']);
Route::patch('entity/asset/video/vassetis/{vassetis}', ['as'=> 'entity.asset.video.vassetis.update', 'uses' => 'Entity\Asset\Video\VassetiController@update']);
Route::delete('entity/asset/video/vassetis/{vassetis}', ['as'=> 'entity.asset.video.vassetis.destroy', 'uses' => 'Entity\Asset\Video\VassetiController@destroy']);
Route::get('entity/asset/video/vassetis/{vassetis}', ['as'=> 'entity.asset.video.vassetis.show', 'uses' => 'Entity\Asset\Video\VassetiController@show']);
Route::get('entity/asset/video/vassetis/{vassetis}/edit', ['as'=> 'entity.asset.video.vassetis.edit', 'uses' => 'Entity\Asset\Video\VassetiController@edit']);

// 剧集详情
Route::get('entity/asset/video/vassetis/vasseti_details/{vasseti_id}', ['as'=> 'entity.asset.video.vassetis.vasseti_details', 'uses' => 'Entity\Asset\Video\VassetiController@vassetiDetails']);

// 批量导入
Route::get('entity/asset/video/vassetis/batch_import/view', ['as'=> 'entity.asset.video.vassetis.batch_import_view', 'uses' => 'Entity\Asset\Video\VassetiController@batchImportView']);
Route::post('entity/asset/video/vassetis/batch_import', ['as'=> 'entity.asset.video.vassetis.batch_import', 'uses' => 'Entity\Asset\Video\VassetiController@batchImport']);
// 批量导入进度
Route::get('entity/asset/video/vassetis/batch_import/bacth_import_progress',[
    'as'=> 'entity.asset.video.vassetis.bacth_import_progress',
    'uses' => 'Entity\Asset\Video\VassetiController@bacthImportProgress'
]);

/**
 * 剧集, 上下线和发布
 */
// 上线发布
Route::get('entity/asset/video/vassetis/vasseti_details/publish/view',[
    'as'=> 'entity.asset.video.vassetis.publish', 
    'uses' => 'Entity\Asset\Video\VassetiController@publish'
]);
// 单个,批量上线发布
Route::post('entity/asset/video/vassetis/vasseti_details/publish_one/view',[
    'as'=> 'entity.asset.video.vassetis.publish_one', 
    'uses' => 'Entity\Asset\Video\VassetiController@batchModerate'
]);
// 单个,批量下线发布
Route::post('entity/asset/video/vassetis/vasseti_details/publish_down_one/view',[
    'as'=> 'entity.asset.video.vassetis.publish_down_one', 
    'uses' => 'Entity\Asset\Video\VassetiController@batchModerate'
]);
// 下线发布
Route::get('entity/asset/video/vassetis/vasseti_details/publish_down/view',[
    'as'=> 'entity.asset.video.vassetis.publish_down', 
    'uses' => 'Entity\Asset\Video\VassetiController@publishDown'
]);
// 全部上线
Route::get('entity/asset/video/vassetis/vasseti_details/all_up/view',[
    'as'=> 'entity.asset.video.vassetis.all_up',
    'uses' => 'Entity\Asset\Video\VassetiController@allUp'
]);
// 全部下线
Route::get('entity/asset/video/vassetis/vasseti_details/all_down/view',[
    'as'=> 'entity.asset.video.vassetis.all_down',
    'uses' => 'Entity\Asset\Video\VassetiController@allDown'
]);
// 单个上线按钮
Route::post('entity/asset/video/vassetis/vasseti_details/up/view',[
    'as'=> 'entity.asset.video.vassetis.up',
    'uses' => 'Entity\Asset\Video\VassetiController@batchModerate'
]);
// 单个下线按钮
Route::post('entity/asset/video/vassetis/vasseti_details/down/view',[
    'as'=> 'entity.asset.video.vassetis.down',
    'uses' => 'Entity\Asset\Video\VassetiController@batchModerate'
]);
// 查询进度
Route::get('entity/asset/video/vassetis/vasseti_details/progress/view',[
    'as'=> 'entity.asset.video.vassetis.progress',
    'uses' => 'Entity\Asset\Video\VassetiController@queryProgress'
]);

// 清除缓存
Route::get('entity/asset/video/vassetis/clear_cache/view',[
    'as'=> 'entity.asset.video.vassetis.clear_cache',
    'uses' => 'Entity\Asset\Video\VassetiController@clearCache'
]);
